//
//  BYVisitorView.h
//  School+
//
//  Created by Sean Sebastian on 4/17/16.
//  Copyright © 2016 Sean Sebastian. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol VistorViewDelegate <NSObject>

- (void)vistorViewRegistClick;
- (void)vistorViewLoginClick;

@end

@interface BYVisitorView : UIView

// UI attributes
@property (nonatomic , weak) UIImageView *iconView;
@property (nonatomic , weak) UIImageView *homeView;
@property (nonatomic , weak) UILabel *messageLabel;
@property (nonatomic , weak) UIButton *registerButton;
@property (nonatomic , weak) UIButton *loginButton;

// cover over the horse imageView
@property (nonatomic , weak) UIImageView *coverView;

- (void)setupInfo:(NSString *)imageName andMessage:(NSString *)message;
- (void)startRotationAnimation;

// control the animation method
//- (void)resumeAnimation;
//- (void)pauseAnimation;



// delegate
@property (nonatomic , weak) id<VistorViewDelegate> vistorViewDelegate;



// buttonClick Method
- (void)registClick;
- (void)loginClick;

@end
